//
//  Viewcontroller.m
//  WebView&&WKWebView
//
//  Created by wanglei on 17/1/19.
//  Copyright © 2017年 wanglei. All rights reserved.
//

#import "Viewcontroller.h"
#import "h5ViewController.h"

@implementation Viewcontroller

- (void)viewDidLoad{
    
    UIButton *bthForward = [[UIButton alloc]initWithFrame:CGRectMake(120, 100, 60, 40)];
    [bthForward setTitle:@"前进" forState:UIControlStateNormal];
    bthForward.backgroundColor = [UIColor redColor];
    [bthForward addTarget:self action:@selector(pushToH5) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:bthForward];
}

- (void)pushToH5{
    h5ViewController *H5Controller = [[h5ViewController alloc]init];
    [self.navigationController pushViewController:H5Controller animated:YES];
}

@end
